<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>需求推荐 | SocialDemand</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #818cf8;
            --primary-bg: #f0f9ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1320px;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
        }
        
        .nav-icon {
            font-size: 1.25rem;
            color: var(--secondary);
            transition: var(--transition);
        }
        
        .nav-icon:hover {
            color: var(--primary);
        }
        
        /* 筛选栏 */
        .filters {
            background-color: white;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
            margin-bottom: 1.5rem;
        }
        
        .filter-tabs {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .filter-tab {
            padding: 0.5rem 1.25rem;
            background-color: var(--light);
            border-radius: 20px;
            border: none;
            white-space: nowrap;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .filter-tab:hover, .filter-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 主内容区 */
        .main-content {
            padding: 2rem 0;
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 需求卡片通用样式 */
        .demand-card {
            background-color: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .demand-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        
        .demand-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
        }
        
        .demand-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .post-time {
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        .demand-content {
            padding: 1rem;
        }
        
        .demand-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        
        .demand-description {
            color: var(--dark);
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        
        .demand-footer {
            padding: 0.75rem 1rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
        }
        
        .demand-stats {
            display: flex;
            gap: 1.5rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary);
        }
        
        .demand-actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            background-color: var(--primary-bg);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 布局1: 无图片 */
        .demand-no-image .demand-content {
            padding-bottom: 0;
        }
        
        /* 布局2: 单张图片 */
        .demand-single-image .image-container {
            width: 100%;
            max-height: 400px;
            overflow: hidden;
        }
        
        .demand-single-image .demand-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .demand-single-image:hover .demand-image {
            transform: scale(1.02);
        }
        
        /* 布局3: 多张图片 (网格) */
        .demand-multiple-images .images-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            margin-bottom: 1rem;
        }
        
        .demand-multiple-images .demand-image {
            width: 100%;
            height: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
        }
        
        .demand-multiple-images .image-item {
            position: relative;
            overflow: hidden;
        }
        
        .demand-multiple-images .image-count {
            position: absolute;
            top: 0;
            right: 0;
            background-color: rgba(0,0,0,0.6);
            color: white;
            padding: 0.25rem 0.5rem;
            font-size: 0.8rem;
        }
        
        /* 布局4: 大图+小图组合 */
        .demand-combined-images .images-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 4px;
            margin-bottom: 1rem;
            height: 240px;
        }
        
        .demand-combined-images .main-image {
            grid-column: 1;
            grid-row: 1 / 3;
        }
        
        .demand-combined-images .sub-image {
            grid-column: 2;
        }
        
        .demand-combined-images .demand-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 布局5: 左侧图片右侧内容 */
        .demand-side-by-side {
            display: flex;
            flex-direction: column;
        }
        
        @media (min-width: 768px) {
            .demand-side-by-side {
                flex-direction: row;
            }
            
            .demand-side-by-side .image-container {
                width: 40%;
                height: auto;
            }
            
            .demand-side-by-side .content-wrapper {
                width: 60%;
                display: flex;
                flex-direction: column;
            }
            
            .demand-side-by-side .demand-header,
            .demand-side-by-side .demand-content,
            .demand-side-by-side .demand-footer {
                width: 100%;
            }
        }
        
        .demand-side-by-side .image-container {
            width: 100%;
            height: 200px;
        }
        
        .demand-side-by-side .demand-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 标签样式 */
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .tag {
            background-color: var(--primary-bg);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
  
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .demand-title {
                font-size: 1.15rem;
            }
            
            .demand-stats {
                gap: 1rem;
            }
            
            .demand-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .demand-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                max-width: 100%;
            }
            
            .demand-multiple-images .images-container {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .stat-item span:last-child {
                display: none;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">SocialDemand</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse justify-content-center" id="navbarContent">
                <div class="d-flex search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索需求、用户或标签...">
                </div>
            </div>
            
            <div class="d-flex gap-3 ms-3">
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-home"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-bell"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-plus-circle"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-user-circle"></i>
                </a>
            </div>
        </div>
    </nav>
    
    <!-- 筛选栏 -->
    <div class="filters">
        <div class="container">
            <div class="filter-tabs">
                <button class="filter-tab active">全部需求</button>
                <button class="filter-tab">最新发布</button>
                <button class="filter-tab">热门推荐</button>
                <button class="filter-tab">附近需求</button>
                <button class="filter-tab">技能服务</button>
                <button class="filter-tab">物品交换</button>
                <button class="filter-tab">创意合作</button>
                <button class="filter-tab">活动组织</button>
            </div>
        </div>
    </div>
    
    <!-- 主内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 推荐需求 -->
            <h2 class="section-title">
                <i class="fas fa-star text-warning"></i> 为你推荐
            </h2>
            
            <div class="row">
                <!-- 左侧主内容 -->
                <div class="col-lg-8">
                    <!-- 布局1: 无图片需求 -->
                    <div class="demand-card demand-no-image">
                        <div class="demand-header">
                            <div class="demand-author">
                                <img src="https://picsum.photos/100/100?random=1" alt="李小明的头像" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">李小明</div>
                                    <div class="post-time">2小时前</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="demand-content">
                            <h3 class="demand-title">寻找Python开发合作伙伴，共同开发开源数据分析工具</h3>
                            
                            <div class="tags">
                                <span class="tag">Python</span>
                                <span class="tag">开源</span>
                                <span class="tag">数据分析</span>
                                <span class="tag">合作</span>
                            </div>
                            
                            <div class="demand-description">
                                我正在开发一个面向数据科学初学者的开源数据分析工具，旨在简化数据清洗和可视化流程。目前已有初步原型，希望找到有Python开发经验，熟悉Pandas、Matplotlib或Plotly的开发者共同完善。<br><br>
                                不需要全职投入，每周能保证10-15小时即可。有意者请留言或私信我，附上你的GitHub链接或相关项目经验。
                            </div>
                        </div>
                        
                        <div class="demand-footer">
                            <div class="demand-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>328</span>
                                    <span>浏览</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>24</span>
                                    <span>评论</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>北京</span>
                                </div>
                            </div>
                            
                            <div class="demand-actions">
                                <button class="action-btn like-btn" data-id="1">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>42</span>
                                </button>
                                <button class="action-btn save-btn" data-id="1">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                                <button class="action-btn comment-btn" data-id="1">
                                    <i class="far fa-comment"></i>
                                    <span>评论</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 布局2: 单张图片需求 -->
                    <div class="demand-card demand-single-image">
                        <div class="demand-header">
                            <div class="demand-author">
                                <img src="https://picsum.photos/100/100?random=2" alt="王芳的头像" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">王芳</div>
                                    <div class="post-time">昨天 15:30</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="image-container">
                            <img src="https://picsum.photos/800/450?random=10" alt="手工编织篮样品" class="demand-image">
                        </div>
                        
                        <div class="demand-content">
                            <h3 class="demand-title">求购手工编织篮，用于周末市集摆摊展示商品</h3>
                            
                            <div class="tags">
                                <span class="tag">手工制品</span>
                                <span class="tag">求购</span>
                                <span class="tag">编织</span>
                                <span class="tag">市集</span>
                            </div>
                            
                            <div class="demand-description">
                                本人周末会参加创意市集售卖手作饰品，需要5-8个中等大小的手工编织篮用于展示商品。希望风格简约自然，尺寸大约30×20×15cm左右。<br><br>
                                有制作能力的手工艺人请联系我，最好能提供样品照片和报价，希望能长期合作。
                            </div>
                        </div>
                        
                        <div class="demand-footer">
                            <div class="demand-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>512</span>
                                    <span>浏览</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>37</span>
                                    <span>评论</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>上海</span>
                                </div>
                            </div>
                            
                            <div class="demand-actions">
                                <button class="action-btn like-btn" data-id="2">
                                    <i class="fas fa-thumbs-up liked"></i>
                                    <span>89</span>
                                </button>
                                <button class="action-btn save-btn" data-id="2">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                                <button class="action-btn comment-btn" data-id="2">
                                    <i class="far fa-comment"></i>
                                    <span>评论</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 布局3: 多张图片需求 (网格布局) -->
                    <div class="demand-card demand-multiple-images">
                        <div class="demand-header">
                            <div class="demand-author">
                                <img src="https://picsum.photos/100/100?random=3" alt="张伟的头像" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">张伟</div>
                                    <div class="post-time">3天前</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="demand-content">
                            <h3 class="demand-title">寻找室内设计师，为我的小户型公寓提供改造方案</h3>
                            
                            <div class="tags">
                                <span class="tag">室内设计</span>
                                <span class="tag">小户型</span>
                                <span class="tag">装修</span>
                                <span class="tag">咨询</span>
                            </div>
                            
                            <div class="demand-description">
                                刚购买了一套65平米的两居室，希望找到有经验的室内设计师提供改造方案。主要需求是增加储物空间，优化采光，风格偏好北欧简约风。<br><br>
                                以下是房屋现状照片，有意向的设计师请联系我，预算可议。
                            </div>
                            
                            <div class="images-container">
                                <div class="image-item">
                                    <img src="https://picsum.photos/400/400?random=20" alt="客厅现状" class="demand-image">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/400/400?random=21" alt="卧室现状" class="demand-image">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/400/400?random=22" alt="厨房现状" class="demand-image">
                                    <div class="image-count">+2</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="demand-footer">
                            <div class="demand-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>763</span>
                                    <span>浏览</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>42</span>
                                    <span>评论</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>广州</span>
                                </div>
                            </div>
                            
                            <div class="demand-actions">
                                <button class="action-btn like-btn" data-id="3">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>124</span>
                                </button>
                                <button class="action-btn save-btn" data-id="3">
                                    <i class="fas fa-bookmark saved"></i>
                                    <span>已收藏</span>
                                </button>
                                <button class="action-btn comment-btn" data-id="3">
                                    <i class="far fa-comment"></i>
                                    <span>评论</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 布局4: 大图+小图组合 -->
                    <div class="demand-card demand-combined-images">
                        <div class="demand-header">
                            <div class="demand-author">
                                <img src="https://picsum.photos/100/100?random=4" alt="刘静的头像" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">刘静</div>
                                    <div class="post-time">4天前</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="demand-content">
                            <h3 class="demand-title">征集宠物摄影作品，用于宠物救助公益宣传</h3>
                            
                            <div class="tags">
                                <span class="tag">摄影</span>
                                <span class="tag">宠物</span>
                                <span class="tag">公益</span>
                                <span class="tag">征集</span>
                            </div>
                            
                            <div class="demand-description">
                                我们是一家宠物救助非营利组织，正在筹备年度公益宣传活动，需要一批高质量的宠物摄影作品。内容可以是救助的流浪动物、家养宠物等，展现宠物与人类的美好情感。<br><br>
                                作品将用于宣传册、海报和社交媒体，会标明摄影师信息。有意向的摄影师请联系我们，提交作品样本。
                            </div>
                            
                            <div class="images-container">
                                <div class="image-item main-image">
                                    <img src="https://picsum.photos/600/400?random=30" alt="宠物摄影示例1" class="demand-image">
                                </div>
                                <div class="image-item sub-image">
                                    <img src="https://picsum.photos/300/200?random=31" alt="宠物摄影示例2" class="demand-image">
                                </div>
                                <div class="image-item sub-image">
                                    <img src="https://picsum.photos/300/200?random=32" alt="宠物摄影示例3" class="demand-image">
                                </div>
                            </div>
                        </div>
                        
                        <div class="demand-footer">
                            <div class="demand-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>927</span>
                                    <span>浏览</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>58</span>
                                    <span>评论</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>成都</span>
                                </div>
                            </div>
                            
                            <div class="demand-actions">
                                <button class="action-btn like-btn" data-id="4">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>215</span>
                                </button>
                                <button class="action-btn save-btn" data-id="4">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                                <button class="action-btn comment-btn" data-id="4">
                                    <i class="far fa-comment"></i>
                                    <span>评论</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 布局5: 左侧图片右侧内容 -->
                    <div class="demand-card demand-side-by-side">
                        <div class="image-container">
                            <img src="https://picsum.photos/600/800?random=40" alt="二手自行车照片" class="demand-image">
                        </div>
                        
                        <div class="content-wrapper">
                            <div class="demand-header">
                                <div class="demand-author">
                                    <img src="https://picsum.photos/100/100?random=5" alt="赵强的头像" class="author-avatar">
                                    <div class="author-info">
                                        <div class="author-name">赵强</div>
                                        <div class="post-time">1周前</div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="demand-content">
                                <h3 class="demand-title">转让9成新山地自行车，或换同等价值的公路自行车</h3>
                                
                                <div class="tags">
                                    <span class="tag">二手交易</span>
                                    <span class="tag">自行车</span>
                                    <span class="tag">转让</span>
                                    <span class="tag">以物易物</span>
                                </div>
                                
                                <div class="demand-description">
                                    去年购买的捷安特山地车，型号ATX777，橙色，9成新，骑行不到500公里。因想换公路车，故转让或交换。<br><br>
                                    原价3298元，现1800元转让，或换同等价值的公路自行车。车子保养得很好，无任何故障，配件齐全。<br><br>
                                    仅限同城交易，可当面看车试车。
                                </div>
                            </div>
                            
                            <div class="demand-footer">
                                <div class="demand-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>1254</span>
                                        <span>浏览</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>76</span>
                                        <span>评论</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-map-marker-alt"></i>
                                        <span>杭州</span>
                                    </div>
                                </div>
                                
                                <div class="demand-actions">
                                    <button class="action-btn like-btn" data-id="5">
                                        <i class="fas fa-thumbs-up liked"></i>
                                        <span>189</span>
                                    </button>
                                    <button class="action-btn save-btn" data-id="5">
                                        <i class="fas fa-bookmark saved"></i>
                                        <span>已收藏</span>
                                    </button>
                                    <button class="action-btn comment-btn" data-id="5">
                                        <i class="far fa-comment"></i>
                                        <span>评论</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 加载更多按钮 -->
                    <div class="text-center mt-4">
                        <button class="btn btn-outline-primary" id="loadMore">
                            <i class="fas fa-refresh me-2"></i>加载更多需求
                        </button>
                    </div>
                </div>
                
                <!-- 右侧边栏 -->
                <div class="col-lg-4">
                    <!-- 热门标签 -->
                    <div class="card mb-4">
                        <div class="card-header bg-white">
                            <h5 class="mb-0">热门标签</h5>
                        </div>
                        <div class="card-body">
                            <div class="tags">
                                <span class="tag">技能交换</span>
                                <span class="tag">二手交易</span>
                                <span class="tag">设计</span>
                                <span class="tag">摄影</span>
                                <span class="tag">手工</span>
                                <span class="tag">编程</span>
                                <span class="tag">美食</span>
                                <span class="tag">运动</span>
                                <span class="tag">学习</span>
                                <span class="tag">旅行</span>
                                <span class="tag">宠物</span>
                                <span class="tag">公益</span>
                                <span class="tag">活动</span>
                                <span class="tag">租房</span>
                                <span class="tag">求职</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 活跃用户 -->
                    <div class="card mb-4">
                        <div class="card-header bg-white">
                            <h5 class="mb-0">活跃用户</h5>
                        </div>
                        <div class="card-body p-0">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-3">
                                        <img src="https://picsum.photos/100/100?random=101" alt="陈创意的头像" class="author-avatar">
                                        <div>
                                            <div class="author-name">陈创意</div>
                                            <div class="text-sm text-secondary">发布了24个需求</div>
                                        </div>
                                    </div>
                                    <button class="btn btn-sm btn-outline-primary">关注</button>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-3">
                                        <img src="https://picsum.photos/100/100?random=102" alt="林手艺的头像" class="author-avatar">
                                        <div>
                                            <div class="author-name">林手艺</div>
                                            <div class="text-sm text-secondary">回应了56个需求</div>
                                        </div>
                                    </div>
                                    <button class="btn btn-sm btn-outline-primary">关注</button>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-3">
                                        <img src="https://picsum.photos/100/100?random=103" alt="王摄影的头像" class="author-avatar">
                                        <div>
                                            <div class="author-name">王摄影</div>
                                            <div class="text-sm text-secondary">发布了18个需求</div>
                                        </div>
                                    </div>
                                    <button class="btn btn-sm btn-primary">已关注</button>
                                </li>
                            </ul>
                        </div>
                    </div>
                    
                    <!-- 需求分类 -->
                    <div class="card">
                        <div class="card-header bg-white">
                            <h5 class="mb-0">需求分类</h5>
                        </div>
                        <div class="card-body p-0">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-2">
                                        <i class="fas fa-handshake text-primary"></i>
                                        <span>技能服务</span>
                                    </div>
                                    <span class="badge bg-secondary">1,243</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-2">
                                        <i class="fas fa-exchange-alt text-primary"></i>
                                        <span>物品交换</span>
                                    </div>
                                    <span class="badge bg-secondary">2,876</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-2">
                                        <i class="fas fa-users text-primary"></i>
                                        <span>创意合作</span>
                                    </div>
                                    <span class="badge bg-secondary">854</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-2">
                                        <i class="fas fa-calendar-alt text-primary"></i>
                                        <span>活动组织</span>
                                    </div>
                                    <span class="badge bg-secondary">632</span>
                                </li>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <div class="d-flex align-items-center gap-2">
                                        <i class="fas fa-question-circle text-primary"></i>
                                        <span>求助咨询</span>
                                    </div>
                                    <span class="badge bg-secondary">1,547</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {

            
            // 筛选标签切换
            const filterTabs = document.querySelectorAll('.filter-tab');
            filterTabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    filterTabs.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                    showNotification(`已切换到 ${this.textContent}`);
                });
            });
            
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = parseInt(countSpan.textContent);
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'liked');
                        count++;
                        showNotification('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas', 'liked');
                        icon.classList.add('far');
                        count--;
                        showNotification('已取消点赞');
                    }
                    
                    countSpan.textContent = count;
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.save-btn');
            saveButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const textSpan = this.querySelector('span');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'saved');
                        textSpan.textContent = '已收藏';
                        showNotification('已收藏该需求');
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas', 'saved');
                        icon.classList.add('far');
                        textSpan.textContent = '收藏';
                        showNotification('已取消收藏');
                    }
                });
            });
            
            // 评论按钮
            const commentButtons = document.querySelectorAll('.comment-btn');
            commentButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const demandId = this.getAttribute('data-id');
                    showNotification('即将打开评论区');
                    // 实际应用中这里会跳转到评论区或打开评论模态框
                });
            });
            
            // 加载更多
            const loadMoreBtn = document.getElementById('loadMore');
            loadMoreBtn.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin me-2"></i>加载中...';
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '<i class="fas fa-refresh me-2"></i>加载更多需求';
                    this.disabled = false;
                    showNotification('已加载更多需求');
                }, 1500);
            });
            
            // 关注按钮
            const followButtons = document.querySelectorAll('.btn-outline-primary');
            followButtons.forEach(btn => {
                if (btn.textContent.trim() === '关注') {
                    btn.addEventListener('click', function() {
                        this.textContent = '已关注';
                        this.classList.remove('btn-outline-primary');
                        this.classList.add('btn-primary');
                        showNotification('已关注该用户');
                    });
                }
            });
        });
    </script>
</body>
</html>
    
